package test;

import java.util.Scanner;

public class ReverseOutput {
    static String[] strings = new String[5];
    static Scanner scanner = new Scanner(System.in);
    public static void main(String[] args) {
        input();
        System.out.println();
        output();
    }
    public static void input(){
        for (int i = 0; i < strings.length; i++) {
            System.out.println("请输入一句话");
            strings[i] =scanner.next();
        }
    }
    public static void output(){
        for (int i = strings.length - 1; i >= 0; i--) {
            System.out.println(strings[i]);
        }
    }
}
